package com.pzh.assignment.common.bean.vo;

import com.pzh.assignment.entity.Task;
import lombok.Data;

@Data
public class TaskWorkloadVO {
    private Integer id;
    private Integer teacherId;
    private Float workload;

    public static TaskWorkloadVO valueOf(Task task) {
        TaskWorkloadVO vo = new TaskWorkloadVO();
        vo.setTeacherId(task.getTeacherId());
        vo.setId(task.getTeacherId());
        return vo;
    }

}
